import React, { Component } from 'react'
import {BrowserRouter, Route, Switch} from 'react-router-dom'
import routes from './routes'
import Login from '@/views/Login/Login.js'
import Frame from '@/layout/frame'
export default class appRouter extends Component {
  
  render() {
    return (
      <BrowserRouter>
        <Switch>
          <Route path='/login' component={Login}></Route>
          <Route path='/' render={
            props => <Frame {...props}/>
          }></Route>
        </Switch>
      </BrowserRouter>
    )
  }
}
